package com.java.springtest.mvc.handler;

import com.java.springtest.mvc.HandlerAdapter;
import com.java.springtest.mvc.controller.SimpleController;

/**
 * @author Woo_home
 * @create by 2020/2/18
 */

// 多种适配器类
public class SimpleHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof SimpleController);
    }

    @Override
    public void handle(Object handler) {
        ((SimpleController) handler).doSimpleHandler();
    }
}
